package com.jxc.model.po;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/***********************************************************************
 * Module:  DeliverlistItem.java
 * Author:  Administrator
 * Purpose: Defines the Class DeliverlistItem
 ***********************************************************************/

/**
 * 调拨单明细
 * 
 * @pdOid 60b4a341-33ad-4b95-8e7b-de5c41b1702e
 */
@Entity
@Table(name = "KCGL_DELIVERLIST_ITEM")
public class DeliverlistItem extends IdEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5573534905719260616L;
	/**
	 * 商品
	 * 
	 * @pdOid 1c1678f2-07b9-440e-8b8b-99ba662cba5e
	 */
	private Goods goods;
	/**
	 * 发货单价
	 * 
	 * @pdOid 03c8c34d-b627-463b-9227-56ad9084825b
	 */
	private Double price;
	/**
	 * 发货数量
	 * 
	 * @pdOid 03c8c34d-b627-463b-9227-56ad9084825b
	 */
	private Integer num;
	
	/**
	 *  发货单
	 * 
	 * @pdOid 5b8384b7-ba22-4bc5-a7e4-054522a8acea
	 */
	private Deliverlist deliverlist;
	/**
	 * 收货方匹配商品
	 */
	private Goods dealerGoods;
	/**
	 * 是否确认分发
	 */
	private Boolean isConfirm;
	/**
	 * 备注
	 * 
	 */
	private String remark;


	@Column(name = "IS_CONFIRM")
	public Boolean getIsConfirm() {
		return isConfirm;
	}

	public void setIsConfirm(Boolean isConfirm) {
		this.isConfirm = isConfirm;
	}

	@Column(name = "PRICE")
	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Column(name = "REMARK")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@ManyToOne
	@JoinColumn(name = "GOODS_ID")
	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	@Column(name = "NUM", length = 10)
	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@ManyToOne
	@JoinColumn(name = "DELIVERLIST_ID")
	public Deliverlist getDeliverlist() {
		return deliverlist;
	}

	public void setDeliverlist(Deliverlist deliverlist) {
		this.deliverlist = deliverlist;
	}

	@ManyToOne
	@JoinColumn(name = "DEALER_GOODS_ID")
	public Goods getDealerGoods() {
		return dealerGoods;
	}

	public void setDealerGoods(Goods dealerGoods) {
		this.dealerGoods = dealerGoods;
	}

}